package com.yu.newsSys.dao;

import com.yu.newsSys.domain.News;

import java.util.List;

public interface NewsDao {
    List<News> getNews(String newsPaperName, String fileTitle, Integer start, Integer pageSize);

    int add(News news);

    News getNewsById(int id);

    int update(News news);

    int delete(int id);

    Integer getTotal(String newsPaperName, String fileTitle);
}
